package com.lzdongrui.backend.domain;

import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.lzdongrui.common.annotation.Excel;
import com.lzdongrui.common.core.domain.BaseEntity;

/**
 * 学生信息对象 studentinfo
 *
 * @author hjs
 * @date 2023-05-05
 */
@Data
public class Studentinfo extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * id
     */
    private Long id;

    /**
     * 学号
     */
    @Excel(name = "学号")
    private Long sno;

    /**
     * 姓名
     */
    @Excel(name = "姓名")
    private String name;

    /**
     * 班级id
     */
    private Long gradeId;

    @Excel(name = "班级名称")
    private String gradeName;

    /**
     * 性别
     */
    @Excel(name = "性别 1男 0女")
    private Integer gender;

    /**
     * 密码
     */
    private String password;

    /**
     * 电话号码
     */
    @Excel(name = "电话号码")
    private String phone;

    /**
     * 年级
     */
    @Excel(name = "年级")
    private Long schoolYear;

    /**
     * 邮箱
     */
    @Excel(name = "邮箱")
    private String mail;

    @Excel(name = "是否在校 0在校 1离校")
    private Integer isAtSchool;

    public Integer getIsAtSchool() {
        return isAtSchool;
    }

    public void setIsAtSchool(Integer isAtSchool) {
        this.isAtSchool = isAtSchool;
    }

    /**
     * 家庭地址
     */
    @Excel(name = "家庭地址")
    private String location;

    public void setId(Long id) {
        this.id = id;
    }

    public Long getId() {
        return id;
    }

    public void setSno(Long sno) {
        this.sno = sno;
    }

    public Long getSno() {
        return sno;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getName() {
        return name;
    }

    public void setGradeId(Long gradeId) {
        this.gradeId = gradeId;
    }

    public Long getGradeId() {
        return gradeId;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getPassword() {
        return password;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getPhone() {
        return phone;
    }

    public void setSchoolYear(Long schoolYear) {
        this.schoolYear = schoolYear;
    }

    public Long getSchoolYear() {
        return schoolYear;
    }

    public void setMail(String mail) {
        this.mail = mail;
    }

    public String getMail() {
        return mail;
    }

    public void setLocation(String location) {
        this.location = location;
    }

    public String getLocation() {
        return location;
    }

    public String getGradeName() {
        return gradeName;
    }

    public void setGradeName(String gradeName) {
        this.gradeName = gradeName;
    }

    public Integer getGender() {
        return gender;
    }

    public void setGender(Integer gender) {
        this.gender = gender;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("sno", getSno())
                .append("name", getName())
                .append("gradeId", getGradeId())
                .append("gender", getGender())
                .append("password", getPassword())
                .append("phone", getPhone())
                .append("schoolYear", getSchoolYear())
                .append("mail", getMail())
                .append("location", getLocation())
                .append("createTime", getCreateTime())
                .append("updateTime", getUpdateTime())
                .append("isAtSchool", getIsAtSchool())
                .toString();
    }

}
